#include "print.h"
#include "init.h"
#include "interrupt.h"
#include "thread.h"
#include "../device/console.h"
#include "../device/keyboard.h"
int a = 0;

void thread_a(void* args);

int main(){
    set_cursor_pos(0);
    put_str(" --Hello World!!! by kkk!!! \n");
    put_str("init start\n");
    init_all();

   thread_start("thread_a",30,thread_a,"A ");
   thread_start("thread_b",30,thread_a,"B ");
      thread_start("thread_b",30,thread_a,"C ");
    intr_enable(); //临时开启中断
    while(1);
    return 0;
}


void thread_a(void* args)
{
    char* msg = (char*)args;
    while(1){
        // int i = 999;
        // while(i--);
        console_put_char(kbd_get());
    }
    
}